<{foreach item=poll from=$block.polls}>
<form style="margin-top: 1px;" action="<{$xoops_url}>/modules/xoopspoll/index.php" method="post">
<table class="outer" cellspacing="1">
  <tr>
    <th align="center" colspan="2"><input type="hidden" name="poll_id" value="<{$poll.id}>" /><{$poll.question}></th>
  </tr>

<{if ($poll.has_expired OR $poll.has_voted>0)}>
<{foreach item=option from=$poll.options}>
  <tr class="<{cycle values="even,odd"}>">
    <td width="30%" align="left">
    <{$option.text}>
    </td>
    <td width="70%" align="left">
    <{$option.image}> <{$option.percent}> (<{$option.count}>)<br>
    <img src=<{$xoops_url}>/modules/xoopspoll/images/colorbars/<{$option.color}> height=14 width=<{$option.percent}>>
    </td>
  </tr>
  
  <{/foreach}>
<{else}>
  <{foreach item=option from=$poll.options}>
  <tr class="<{cycle values="even,odd"}>">
    <td align="center"><input type="<{$poll.option_type}>" name="<{$poll.option_name}>" value="<{$option.id}>" /></td>
    <td align="left"><{$option.text}></td>
  </tr>
  <{/foreach}>
  <tr>
  <{/if}>
  <{if ($poll.has_expired OR $poll.has_voted>0)}>
   <td class="foot" align="center" colspan="2"><input type="button" value="<{$block.lang_results}>" onclick="location='<{$xoops_url}>/modules/xoopspoll/pollresults.php?poll_id=<{$poll.id}>'" /></td>
  <{else}>
    <td class="foot" align="center" colspan="2"><input type="submit" value="<{$block.lang_vote}>" /> <input type="button" value="<{$block.lang_results}>" onclick="location='<{$xoops_url}>/modules/xoopspoll/pollresults.php?poll_id=<{$poll.id}>'" /></td>
  <{/if}>
  </tr>
   <tr>
	<{if ($poll.has_expired)}>
		<td class="foot" align="center" colspan="2"><{$block.lang_expired}> <{$poll.end_time}></td>	
	<{else}>
		<td class="foot" align="center" colspan="2"><{$block.lang_expires}> <{$poll.end_time}></td>
	<{/if}>
  </tr>
</table>
</form>
<{/foreach}>